

#include "Server_1.hpp"

int main(int argc, char *argv[])
{
    LOG::ENABLE_CONSOLE();

    if (argc != 2) // 使用不当 就会报错
    {
        EP(Error::MAIN_USE_ERROR);
        DIE(Error::MAIN_USE_ERROR);
    }

    uint16_t _port = std::stoi(argv[1]);

    std::unique_ptr<PracticeServer::Server> _server = std::make_unique<PracticeServer::Server>(_port);
    _server->Init();
    _server->Start();

    return 0;
}